<template>
  <el-dialog
      :visible.sync="visible"
      width="46%"
      :before-close="onClose">
      <div slot="title" style="font-size: 14px;font-weight: 500;">
        选择标签
      </div>
      <div class="create-tag-container">
        <div class="tag-form-list">
          <div class="tag-form">
            <el-input size="small" placeholder="搜标签分组" suffix-icon="el-icon-search" style="width: 216px;"/>
          </div>
          <div class="tag-list">
              <div class="empty-content">
                <img class="empty-cover" src="@/assets/images/ic_table_empty_1.png"/>
                <div class="empty-desc">暂无数据</div>
              </div>
          </div>
        </div>
        <div class="selected">
          <div class="selected-title">
            <span style="color: rgba(0,0,0,.85);">已选标签</span>
            <span style="color: rgba(0,0,0,.45);">（0）</span>
          </div>
          <div class="selected-list">

          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="onClose">取消</el-button>
        <el-button type="primary" @click="onClose">确定</el-button>
      </span>
    </el-dialog>
</template>
<script>
export default {
  data() {
    return {
      check: 0,
      check1: 0,
    }
  },
  props: ['visible'],
  methods: {
    onClose() {
      this.$emit('handCloseDialog');
    }
  },
}
</script>
<style lang="scss" scoped>
.create-tag-container{
  display: flex;
  align-items: flex-start;
  .tag-form-list {
    flex: 1 1;
    height: 460px;
    margin-left: 12px;
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, .15);
    .tag-form {
      padding: 8px 12px;
      border-bottom: 1px solid #e9e9e9;
    }
    .tag-list {
      .empty-content {
        margin: 32px 0;
        display: flex;
        align-items: center;
        flex-direction: column;
        color: rgba(0, 0, 0, .25);
        .empty-cover {
          height: 40px;
          margin-bottom: 8px;
        }
        .empty-desc {
          font-size: 14px;
          line-height: 22px;
          color: rgba(0, 0, 0, .25);
        }
      }
    }
  }
  .selected {
    width: 240px;
    margin-left: 12px;
    background: #fafafa;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, .15);
    .selected-title {
      height: 48px;
      line-height: 48px;
      padding-left: 12px;
      font-size: 14px;
      border-bottom: 1px solid #e9e9e9;
    }
    .selected-list {
      height: 408px;
      overflow: auto;
      padding: 12px;
    }
  }
}
</style>